package registry

type Register interface {
	PutService(key, val string, time int64) error
	GetService(key string) (map[string]string, error)
	Watch(key string) <-chan *WatchChan
	RevokeLease() error
}

var (
	DefaultAddr = []string{"127.0.0.1:2379"}
)

type EventType int

const (
	PUT    EventType = 0
	DELETE EventType = 1
)

const WatchSize = 16

type WatchChan struct {
	Event EventType
	Key   string
	Value string
}
